<template>
	<view class="content columnbox wdh-100">
		<u-empty v-if="list.length==0" text="暂无物流信息" mode="car" icon="http://cdn.uviewui.com/uview/empty/list.png">
		</u-empty>
		<template>
			<u-steps current="0" direction="column" activeColor="#00b6b2">
				<u-steps-item :title="item.title" :desc="item.time" v-for="(item,index) in list" :key='index'>
				</u-steps-item>
			</u-steps>
		</template>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: 0,
				state: 0,
				list: []
			};
		},
		onLoad(options) {
			this.id = options.id * 1
			this.state = options.state * 1
			this.getDetail()
		},
		methods: {
			getDetail() {
				this.$req.post('/user/kuaidilist', {
					orderid: this.id,
					state: this.state
				}).then(res => {
					this.list = res.data.data
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		padding: 40rpx 40rpx;
	}
</style>